<?php
trait Test1{
    public function printTest() {
        echo 'test1';
    }
}

trait Test2{
    public function printTest() {
        echo 'test2';
    }
}

class Test {
    use Test1, Test2 {
        Test1::printTest insteadof Test2;
        Test2::printTest as printTest2;
    }
}

$t = new Test();
$t->printTest();